from rest_framework import viewsets

from manage.models.goods import Specs
from manage.serializers.goods import SpecsSerializer, SpecsValueSerializer


# 商品规格
class SpecsViewSet(viewsets.ModelViewSet):
    queryset = Specs.objects.all()
    serializer_class = SpecsSerializer

# 商品规格属性值
class SpecsValueViewSet(viewsets.ModelViewSet):
    queryset = Specs.objects.all()
    serializer_class = SpecsValueSerializer
